import http from "@/utils/http";

// 列表信息
export const menuList = ()=> http.get('/adminapi/admin/menu/tree/list')

// 详情
export const menuDetail = (id)=> http.get(`/adminapi/admin/menu/detail/${id}`)

// 新增
export const menuAdd = (data)=> http.post('/adminapi/admin/menu/add', data)

// 编辑
export const menuEdit = (data)=> http.post('/adminapi/admin/menu/edit', data)

// 删除
export const menuDelete = (id) => http.delete(`/adminapi/admin/menu/delete/${id}`)